//
//  main.m
//  GuessingGame
//
//  Created by admin on 2019/7/30.
//  Copyright © 2019 猫爷爷的酱醋茶. All rights reserved.
//

/*
 
    猜拳游戏：
 
    玩家出拳
    机器人出拳
    
 
 */

#import <Foundation/Foundation.h>
#import "Referee.h"


int main(int argc, const char * argv[])
{
  
    Player *playerNo1 = [Player new];
    playerNo1->_name = @"猫爷爷的酱醋茶";
    
    Robot *robotNo1 = [Robot new];
    robotNo1->_name = @"popopi";
    
    Referee *refereeNo1 = [Referee new];
    refereeNo1->_name = @"蜻蜓队长";
    
    while (1)
    {

        [playerNo1 MoraAction];
        
        if (playerNo1->_select == 0)
        {

            break;
        }
        
        [robotNo1 MoraAction];
        
        [refereeNo1 RulingWithPlayer:playerNo1 andRobot:robotNo1];
        

    }
    

    
    return 0;
}
